package api

import (
	"api_online/data"
	"api_online/response"
	"net/http"
)

func ResultSaveKey(w http.ResponseWriter, r *http.Request) {
	get := r.URL.Query()
	url := get.Get("url")
	key := get.Get("key")
	val := get.Get("val")

	data.Cache.AddResultCacheKeyByUrl(url, key, val)
	var d interface{}
	res, _ := response.SuccessRes(d)

	_, _ = w.Write(res)
}